package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.mallcloud.mall.common.core.util.ValidGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@ApiModel(value = "MallUserValueCardModel", description = "会员储值卡表")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("USERCARDINFO")
public class MallUserValueCardModel implements Serializable {
	private static final long serialVersionUID = 1L;

	@JsonSerialize(using = ToStringSerializer.class)
	@NotNull(message = "ID为空", groups = {ValidGroup.Update.class})
	@ApiModelProperty(value = "主键")
	@TableId(value = "uciid", type = IdType.ASSIGN_ID)
	private Long id;

	@ApiModelProperty(value = "发放的储值卡卡号cardmain_mzk的cdmno")
	@TableField("uciprepaidcardno")
	private String prepaidCardNo;

	@ApiModelProperty(value = "礼品卡当前余额")
	@TableField("uciye")
	private String balance;

	@ApiModelProperty(value = "会员卡卡号（购卡人）")
	@TableField("uciucno_gkr")
	private String holderCardNo;

	@ApiModelProperty(value = "礼品卡状态（Y生效 N失效 D删除）")
	@TableField("ucistatus")
	private String status;

	@ApiModelProperty(value = "会员卡卡号（接收人）")
	@TableField("uciucno_jsr")
	private String receiverCardNo;

//	@ApiModelProperty(value = "礼品卡主表ID")
//	@TableField("cmid")
//	private String cmid;
//
//	@ApiModelProperty(value = "礼品卡总额")
//	@TableField("ucize")
//	private String ucize;
//
//	@ApiModelProperty(value = "礼品卡类型（0自用 1转送 2赠送接收 3实物卡邮寄）")
//	@TableField("ucitype")
//	private String ucitype;
//
//	@ApiModelProperty(value = "礼品卡购卡日期")
//	@TableField("ucidatetime")
//	private LocalDate ucidatetime;
//
//	@ApiModelProperty(value = "备注说明")
//	@TableField("ucicontent")
//	private String ucicontent;
//
//	@ApiModelProperty(value = "礼品卡赠送日期")
//	@TableField("ucidatetime_zs")
//	private LocalDate ucidatetimeZs;
//
//	@ApiModelProperty(value = "礼品卡接收日期")
//	@TableField("ucidatetime_js")
//	private LocalDate ucidatetimeJs;
//
//	@ApiModelProperty(value = "礼品卡条形码图片地址")
//	@TableField("ucitxm")
//	private String ucitxm;
//
//	@ApiModelProperty(value = "礼品卡二维码图片地址")
//	@TableField("uciewm")
//	private String uciewm;
//
//	@ApiModelProperty(value = "会员卡卡号（赠送人）")
//	@TableField("uciucno_zsr")
//	private String uciucnoZsr;
//
//	@ApiModelProperty(value = "微信账号-赠送人")
//	@TableField("uciwxuid_zsr")
//	private String uciwxuidZsr;
//
//	@ApiModelProperty(value = "微信账号-接收人")
//	@TableField("uciwxuid_jsr")
//	private String uciwxuidJsr;
//
//	@ApiModelProperty(value = "微信账号-购卡人")
//	@TableField("uciwxuid_gkr")
//	private String uciwxuidGkr;
//
//	@ApiModelProperty(value = "接收状态（Y已接收 N未接收）")
//	@TableField("ucistatus_js")
//	private String ucistatusJs;
//
//	@ApiModelProperty(value = "购买单号")
//	@TableField("ucidjbh")
//	private String ucidjbh;
//
//	@ApiModelProperty(value = "实际付款金额")
//	@TableField("ucifkje")
//	private String ucifkje;
//
//	@ApiModelProperty(value = "支付订单号")
//	@TableField("ucipayorderno")
//	private String ucipayorderno;
//
//	@ApiModelProperty(value = "发放的储值卡cardmain_mzk的cdmtrack2附加6位二维码随机号")
//	@TableField("uciprepaidcardewmno")
//	private String uciprepaidcardewmno;
//
//	@ApiModelProperty(value = "ERP门店ID")
//	@TableField("erpmdid")
//	private String erpmdid;
}
